# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=grilo
pkgver=0.3.14
pkgrel=0
pkgdesc="GNOME media discovery framework"
url="https://wiki.gnome.org/Projects/Grilo"
arch="all !s390x" # gnome-desktop-dev
license="LGPL-2.1-or-later"
makedepends="gnome-desktop-dev liboauth-dev gmime-dev libsoup-dev libxml2-dev
	totem-pl-parser-dev gobject-introspection-dev itstool libxslt libxml2-utils
	docbook-xml docbook-xsl meson vala"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs"
source="https://download.gnome.org/sources/grilo/${pkgver%.*}/grilo-$pkgver.tar.xz"
build() {
	abuild-meson \
		-Denable-introspection=true \
		-Denable-vala=true \
		-Denable-gtk-doc=false \
		build
	meson compile ${JOBS:+-j ${JOBS}} -C build
}

check() {
	meson test --no-rebuild -v -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
128464e51040ea121b19640c708fa996743a18e047ab11d4c3047db7d24732eac6da65393c16f987e834cb301385ef0c349eb0fabd7d67b2d10a230c8f03492a  grilo-0.3.14.tar.xz
"
